@import '../../styles/global.less';
.k-modal {
	.k-modal-wrap {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 1001;
		overflow: auto;
		outline: 0;
		-webkit-overflow-scrolling: touch;
	}
	.k-modal-mask {
		position: fixed;
		top: 0;
		bottom: 0;
		left: 0;
		right: 0;
		background-color: rgba(55, 55, 55, .6);
		height: 100%;
		z-index: 1001;
		overflow: hidden;
	}
	.k-modal-inner {
		position: relative;
		background-color: #fff;
		z-index: 1001;
		outline: 0;
		border-radius: @radius;
		top: 100px;
		overflow: hidden;
		margin: 0 auto;
		box-shadow: 0 0 10px 3px rgba(55, 55, 55, .2);
		width: 520px; // animation: fadeIn .5s ease-in-out;
	}
	.k-modal-content {
		position: relative;
		border: 0;
		background-clip: padding-box;
		height: 100%;
		overflow: hidden;
		.k-modal-close {
			position: absolute;
			cursor: pointer;
			font-size: 20px;
			color: @color;
			width: 43px;
			height: 43px;
			top: 0;
			right: 0;
			transition: all .3s ease-in-out;
			.k-icon {
				position: absolute;
				top: 50%;
				left: 50%;
				transform: translateY(-50%) translateX(-50%);
			}
			&:hover {
				color: @danger;
				transform: rotate(360deg);
			}
		}
		.k-modal-header {
			border-bottom: 1px solid #e9eaec;
			padding: 14px 16px;
			line-height: 1;
			font-size: 14px;
			font-weight: 700;
			user-select: none;
			.k-modal-header-inner {
				width: 90%;
				white-space: nowrap;
				overflow: hidden;
				text-overflow: ellipsis;
			}
		}
		.k-modal-body {
			padding: 16px;
			font-size: 12px;
			line-height: 1.5;
			height: calc(100% - 43px - 45px);
			overflow: auto;
			box-sizing: border-box;
		}
		.k-modal-footer {
			border-top: 1px solid #e9eaec;
			padding: 6px 16px;
			text-align: right;
			display: inline-block;
			width: 100%;
			box-sizing: border-box;
			.k-btn {
				margin-left: 8px;
			}
		}
	}
}

.k-modal-can-move {
	.k-modal-header {
		cursor: move;
	}
	.k-modal-inner {
		position: absolute;
	}
}

.k-modal-center {
	.k-modal-wrap {
		text-align: center;
		&::before {
			display: inline-block;
			width: 0;
			height: 100%;
			vertical-align: middle;
			content: '';
		}
	}
	.k-modal-inner {
		top: 0;
		display: inline-block;
		text-align: left;
		vertical-align: middle;
	}
}

.k-modal-max {
	.k-modal-inner {
		height: 100%;
		width: 100%;
		top: 0;
		left: 0;
		border-radius: 0;
		.k-modal-footer {
			position: absolute;
			width: 100%;
			bottom: 0;
			left: 0;
			background: #fff;
		}
	}
}

.k-toast {
	.k-modal-inner {
		width: 416px;
		background: #fff;
		border-radius: @radius;
		padding: 16px;
		overflow: hidden;
	}
	.k-toast-header {
		.k-toast-icon {
			font-size: 28px;
			margin-right: 12px;
			float: left;
		}
		.k-toast-title {
			font-size: 16px;
			font-weight: 700;
			overflow: hidden;
			line-height: 1.5;
		}
	}
	.k-toast-content {
		padding-left: 40px;
		padding-top: 8px;
		font-size: 14px;
	}
	.k-toast-footer {
		float: right;
		margin-top: 20px;
		.k-btn {
			margin-left: 8px;
		}
	}
}

.k-toast-success .k-toast-icon {
	color: @success;
}

.k-toast-error .k-toast-icon {
	color: @danger;
}

.k-toast-warning .k-toast-icon {
	color: @warning;
}

.k-toast-info .k-toast-icon {
	color: @main;
}

.k-toast-confirm .k-toast-icon {
	color: @warning;
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fade-out {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

.k-modal-fade-enter-active {
	animation: fade-in .4s linear;
}

.k-modal-fade-leave-active {
	animation: fade-out .4s linear;
}

@keyframes k-modal-zoom-in {
	from {
		opacity: 0;
		transform: scale3d(.3, .3, 0)
	}
	to {
		opacity: 1;
	}
}

@keyframes k-modal-zoom-out {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
		transform: scale3d(.3, .3, 0);
	}
}

.k-modal-zoom-enter-active {
	animation: k-modal-zoom-in .25s cubic-bezier(.78,.14,.15,.86);
}

.k-modal-zoom-leave-active {
	animation: k-modal-zoom-out .25s cubic-bezier(.78,.14,.15,.86);
}